package client;

public class Patterns {
    public static void main(String[] args) {
        java.util.regex.Pattern p = java.util.regex.Pattern.compile("[a-z1-9\\.\\_\\-]+@[a-z1-9\\.\\-]{3,}");
        java.util.regex.Matcher m = p.matcher("1a-1a_1@aaa");
        boolean b = m.matches();
        if (b) {
            System.out.println("OK");
        }
        else System.out.println("nie OK");
    }
}
